Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
13 lines (11 loc) · 333 Bytes

2.3 - 配置选项.md

File metadata and controls

13 lines (11 loc) · 333 Bytes

配置选项

swoole_server::set函数用于设置swoole_server运行时的各项参数。本节所有的子页面均为配置数组的元素。

示例:

$serv->set(array(
    'worker_num' => 4,    //worker process num
    'backlog' => 128,   //listen backlog
    'max_request' => 50,
    'dispatch_mode'=>1, 
));